//
//  LightDataController.m
//  CAMELLIAE
//
//  Created by 张越 on 16/3/18.
//  Copyright © 2016年 张越. All rights reserved.
//

#import "LightDataController.h"

@interface LightDataController ()

@property (nonatomic,strong) NSUserDefaults *defaults;
@end

@implementation LightDataController

- (instancetype)init{

    self = [super init];
    
    if (self) {
        self.defaults = [NSUserDefaults standardUserDefaults];
    }
    
    return self;
}

/**保存skey*/
- (void)saveSkey:(NSString *)skey{
        [self.defaults setObject:skey forKey:@"skeyOfSANCELL"];
        [self.defaults synchronize];
}
- (NSString *)readSkey{
        return [self.defaults objectForKey:@"skeyOfSANCELL"];
}
- (void)removeSkey{
        [self.defaults removeObjectForKey:@"skeyOfSANCELL"];
}



@end

